/**
 * %%
 * %%
 */
package org.apache.flink.runtime.allocatedeploy;

import org.apache.flink.runtime.clusterframework.types.ResourceProfile;

/**
 * @类名: FixExecutionSlotAllocationContext
 * @说明: 固定资源
 *
 * @author   leehom
 * @Date	 2024年8月10日 下午8:10:50
 * 修改记录：
 *
 * @see 	 
 */
public class FixExecutionSlotAllocationContext implements ExecutionSlotAllocationContext {
	
	public FixExecutionSlotAllocationContext(ResourceProfile resourceProfile) {
		super();
		this.resourceProfile = resourceProfile;
	}

	private ResourceProfile resourceProfile = ResourceProfile.ZERO;

	/* (non-Javadoc)
	 * @see org.apache.flink.runtime.allocatedeploy.ExecutionSlotAllocationContext#getResourceProfile(java.lang.String)
	 */
	@Override
	public ResourceProfile getResourceProfile(String resourceKey) {
		return resourceProfile;
	}

}
